package com.qiqi.mealordersystem.Tools;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormatTool {

    private static SimpleDateFormat dateFormat;

    static {
        dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    }

    public static String format(Date date){

        String format = dateFormat.format(date);

        return format;
    }

}
